﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="head" CodeBehind="head.aspx.cs" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Head</title>
    <link href="./css/left.css" type="text/css" rel="STYLESHEET" />
    <link href="./css/site2.css" type="text/css" rel="STYLESHEET" />
    <script type="text/javascript">
        function MenuClick(tmp) {
            if (tmp == "0") { window.parent.mainFrame.location = "main.aspx"; }
            if (tmp == "5") { window.parent.mainFrame.location = "UserPWDModify.aspx"; }
            if (tmp == "6") { if (confirm("您确定要注销系统登录吗？")) { window.parent.location = "index.aspx"; } }
        }
        function showUserName() {
            document.getElementById('txtUserName').value = a;
        }
    </script>
    <script language="javascript" type="text/javascript">        //加在head中，PNG无灰色背景
        var tmp = window.navigator.userAgent.toLowerCase().indexOf("MSIE");
        //加在head中，PNG无灰色背景
        function correctPNG() {
            for (var i = 0; i < document.images.length; i++) {
                var img = document.images[i];
                var imgName = img.src.toUpperCase();
                if (imgName.substring(imgName.length - 3, imgName.length) == "PNG") {
                    var imgID = (img.id) ? "id='" + img.id + "' " : "";
                    var imgClass = (img.className) ? "class='" + img.className + "' " : "";
                    var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' ";
                    var imgStyle = "display:inline-block;" + img.style.cssText;
                    if (img.align == "left") imgStyle = "float:left;" + imgStyle;
                    if (img.align == "right") imgStyle = "float:right;" + imgStyle;
                    if (tmp >= 1) {
                        if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle;
                    }
                    else {
                        if (img.parentNode.href) imgStyle = "cursor:hand;" + imgStyle;
                    }
                    var strNewHTML = "<span " + imgID + imgClass + imgTitle + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
       + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader" + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>";
                    img.outerHTML = strNewHTML;

                }
            }
        }

        if (window.addEventListener) {
            window.addEventListener('DOMContentLoaded', correctPNG, false);   //firefox
            window.addEventListener('load', correctPNG, false);
        } else if (window.attachEvent) {
            window.attachEvent('onload', correctPNG);  //IE
        }
    </script>
</head>
<body style="margin-left: 0px; margin-right: 0px; margin-top: 0px; font-size: 12px;
    font-family: Arial;" onload="showUserName()">
    <table border="0" cellpadding="0" cellspacing="0" width="100%" style="height: 75px;">
        <tr style="height: 75px">
            <td style="background-image: url('images/master_header_r1_c1.jpg'); width: 183px; cursor: hand;" onclick="MenuClick('0');" title="首页_工单管理支持系统">
                &nbsp;
            </td>
            <td style="background-image: url('images/master_header_r1_c2.jpg'); width: 303px; cursor: hand;" onclick="MenuClick('0');" title="首页_工单管理支持系统">
                &nbsp;
            </td>
            <td style="background-image: url('images/master_header_r1_c3.jpg'); width: auto;">
                &nbsp;
            </td>
            <td style="width: 285px; background-image: url('images/master_header_r1_c5.jpg');
                height: 75px; text-align:right; vertical-align:top;">
                <!-- <a href="#" onclick="MenuClick('0');" style="color: #0000FF">[&nbsp;首&nbsp;&nbsp;页&nbsp;]</a> -->
                &nbsp;&nbsp;&nbsp;&nbsp;
                <input id="txtUserName" type="text" style="border: none; background-color: Transparent;
                    width: 80px; color: #0000FF;" 
                    onclick="alert(this.value);" />
                    <a href="#" onclick="MenuClick('6');" style="color: #0000FF">[&nbsp;注销登录&nbsp;]</a>
            </td>
            <td style="background-image: url('images/master_header_r1_c6.jpg'); width: 101px;">
                &nbsp;
            </td>
        </tr>
    </table>
    <!-- 
    <table border="0" cellpadding="0" cellspacing="0" width="100%" style="height: 26px;">
        <tr>
            <td>
                <a href="#" onclick="MenuClick('0');">
                    <img name="Snap1_r1_c1" src="images/Snap1_r1_c1.gif" width="74" height="26" border="0"
                        id="Snap1_r1_c1" alt="" style="cursor: hand;" /></a>
            </td>
            <td>
                <img name="Snap1_r1_c10" src="images/Snap1_r1_c10.gif" width="6" height="26" border="0"
                    id="Snap1_r1_c10" alt="" />
            </td>
            <td>
                <a href="#" onclick="MenuClick('5');">
                    <img name="Snap1_r1_c11" src="images/Snap1_r1_c11.gif" width="77" height="26" border="0"
                        id="Snap1_r1_c11" alt="" style="cursor: hand;" /></a>
            </td>
            <td>
                <img name="Snap1_r1_c10" src="images/Snap1_r1_c10.gif" width="6" height="26" border="0"
                    id="Img2" alt="" />
            </td>
            <td>
                <a href="#" onclick="MenuClick('6');">
                    <img name="Snap1_r1_c16" src="images/Snap1_r1_c16.gif" width="101" height="26" border="0"
                        id="Img1" alt="" style="cursor: hand;" /></a>
            </td>
            <td>
                <img name="Snap1_r1_c12" src="images/Snap1_r1_c12.gif" width="6" height="26" border="0"
                    id="Snap1_r1_c12" alt="" />
            </td>
            <td style="background-image: url('images/Snap1_r1_c12.gif'); width: 100%">
                &nbsp;
            </td>
            <td>
                <img name="Snap1_r1_c14" src="images/Snap1_r1_c14.gif" width="30" height="26" border="0"
                    id="Snap1_r1_c14" alt="" />
            </td>
            <td style="background-image: url('images/Snap1_r1_c15.gif'); width: 118px; height: 26px;
                color: #fff;">
                
            </td>
            <td>
                <a href="#" onclick="MenuClick('6');">
                    <img name="Snap1_r1_c16" src="images/Snap1_r1_c16.gif" width="101" height="26" border="0"
                        id="Snap1_r1_c16" alt="" style="cursor: hand;" /></a>
            </td>
        </tr>
    </table>
    -->
</body>
</html>
